package com.xxg.renrenorder.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 类说明
 *
 * @author szj
 * @date 2021/12/15
 */
@Data
@ApiModel
public class ModQuery {
    @NotNull(message = "id不能为null")
    @ApiModelProperty(value = "订单ID", required = true)
    private String id;
    @NotNull(message = "modPassword不能为null")
    @ApiModelProperty(value = "mod密码", required = true)
    private String modPassword;

    public boolean checkPassword() {
        return "rrsc_1234_qwer%mod".equals(modPassword);
    }
}
